package com.wsx.ones.monitor.core.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by wangshuaixin on 17/2/10.
 */
public class DefaultLogServiceImpl implements LogService {

    private static Logger trace = LoggerFactory.getLogger("trace");
    private static Logger info = LoggerFactory.getLogger("info");
    private static Logger debuge = LoggerFactory.getLogger("debuge");
    private static Logger warn = LoggerFactory.getLogger("warn");
    private static Logger error = LoggerFactory.getLogger("error");


    @Override
    public void trace(String msg) {
        trace.trace(msg);
    }

    @Override
    public void trace(String format, Object... array) {
        trace.trace(format, array);
    }

    @Override
    public void info(String msg) {
        info.info(msg);
    }

    @Override
    public void info(String format, Object... array) {
        info.info(format, array);
    }

    @Override
    public void info(String msg, Throwable throwable) {
        info.info(msg, throwable);
    }

    @Override
    public void debuge(String msg) {
        debuge.debug(msg);
    }

    @Override
    public void debuge(String format, Object... array) {
        debuge.debug(format, array);
    }

    @Override
    public void debuge(String msg, Throwable throwable) {
        debuge.debug(msg, throwable);
    }

    @Override
    public void warn(String msg) {
        warn.warn(msg);
    }

    @Override
    public void warn(String format, Object... array) {
        warn.warn(format, array);
    }

    @Override
    public void warn(String msg, Throwable throwable) {
        warn.warn(msg, throwable);
    }

    @Override
    public void error(String msg) {
        error.error(msg);
    }

    @Override
    public void error(String format, Object... array) {
        error.error(format, array);
    }

    @Override
    public void error(String msg, Throwable throwable) {
        error.error(msg, throwable);
    }
}
